<template>
  <div>
  <detail  :records="records" />
  </div>
</template>

<script>
import detail from './detail.vue'
import {getComment,} from '../../request/api'
export default {
data(){
  return{
  records:[]
  }
},
components:{
   detail
 },
created(){
   getComment({
     current:'1'
   }).then(res=>{
     console.log(res.data);
     this.records=res.data.records
   })
}
}
</script>

<style lang='less' scoped>

</style>